#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;
int main(){
    int a,b;
    while(cin>>a){
        if(a>0)cout<<1<<endl;
        else if(a==0)cout<<0.5<<endl;
        else cout<<0<<endl;
    }
    return 0;
}
